package com.teaphy.readlist;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication // 开启组件扫描和自动配置
@ServletComponentScan
public class ReadlistApplication {

    public static void main(String[] args) {
        // 负责启动引导应用程序
        SpringApplication.run(ReadlistApplication.class, args);
    }

}

// 打war包
//@SpringBootApplication
//public class ReadlistApplication extends SpringBootServletInitializer {
//
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//        return application.sources(ReadlistApplication.class);
//    }
//
//    public static void main(String[] args) throws Exception {
//        SpringApplication.run(ReadlistApplication.class, args);
//    }
//}
